import React from 'react'
import style from './index.less'
import {connect} from 'dva';
import {Tabtitle} from '../../../components'
import moment from 'moment'
import {Row,Col,Tabs} from 'antd'

const TabPane = Tabs.TabPane;

import PeriodReplayTables from '../components/PeriodReplayTables'

const dateFormat='YYYY-MM-DD'
const nowDate=moment().format(dateFormat)

const PeriodReplay =({periodReplay})=> {

  const {
    begindate,
    enddate,
    firstdate,
    lastdate,
    fund,
  }=periodReplay

  const myProps={
    begindate,
    enddate,
    firstdate,
    lastdate,
    fund,
  }
  return (
    <div className={`${style.root}`}>
      <Tabtitle value={'周期复盘'}/>
      {/*<div className="content-inner" style={{padding:'0 15px'}}>*/}
        <div className="content-inner" style={{paddingTop:'5px'}}>
        <PeriodReplayTables {...myProps} />
      </div>
    </div>
  );
}


export default connect(({periodReplay}) => ({periodReplay}))(PeriodReplay)
